package com.zretc.api.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUser {
    private Integer id;

    private String username;

    private String password;

    private String nickname;

    private String phone;

    private String email;

    private String sex;

    private String avatar;

    private String roleName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Integer createBy;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Integer updateBy;
    private String realName;
    private String address;
    private String signature;
    private Integer credit;


}